<?php

namespace App\Admin\Resources;

class WorshipHymnResource extends JsonResource
{
    public function toArray($request)
    {
        $data = [
            'artists' => is_null($this->artists) ? [] : $this->artists,
            'albums' => is_null($this->albums) ? [] : $this->albums,
        ];
        return array_merge(parent::toArray($request),$data);
    }
}
